﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DATA;
using DTO;

namespace BUS
{
    public class AdministratorBUS
    {
        public AdministratorDTO Login(string uname, string pword)
        {
            AdministratorREP acc = new AdministratorREP();
            return acc.Login(uname, pword);
        }

        public List<AdministratorDTO> GetAllAdministrators()
        {
            AdministratorREP acc = new AdministratorREP();
            return acc.GetAllAdministrators();
        }

        public bool AddAdministrator(AdministratorDTO newAccount)
        {
            AdministratorREP acc = new AdministratorREP();
            return acc.AddAdministrator(newAccount);
        }

        public void DeleteAdministrator(string Accountid)
        {
            AdministratorREP acc = new AdministratorREP();
            acc.deleteAdministrator(Accountid);
        }

        public bool UpdateAdministrator(AdministratorDTO accountup)
        {
            AdministratorREP acc = new AdministratorREP();
            return acc.UpdateAdministrator(accountup);


        }
    }
}
